Learn R Programming

TPXG (version 1.0)

Random Numbers from the TPGX Distribution: Random Numbers from the TPGX Distribution

Description

Generates random numbers form the Two Parameter Xgamma distribution.

Usage

rtpxg(n, alpha = 1, theta = 1)

Value

A numeric vector of size n containing random values from the TPXG distribution.

Arguments

n

An integer indicating the desired sample size.

alpha

A positive real number.

theta

A positive real number.

Author

Nikolaos Kontemeniotis.

R implementation and documentation: Nikolaos Kontemeniotis kontemeniotisn@gmail.com and Michail Tsagris mtsagris@uoc.gr.

Details

The TPXG distribution is a mixture of \(exponential(\theta)\) and \(gamma(3,\theta)\) with mixing proportions \(\frac{\theta}{\alpha+\theta}\) and \(\frac{\alpha}{\alpha+\theta}\) respectively.

References

"Sen, S., Chandra, N. and Maiti, S. S. (2018). On properties and applications of a two-parameter XGamma distribution. Journal of Statistical Theory and Applications, 17(4): 674--685."

See Also

dtpxg,qtpxg,ptpxg

Examples

Run this code
x <- rtpxg(100)

Run the code above in your browser using DataLab